package com.itheima.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Data
@Table(name ="t_category_menu" )
public class CategoryMenu {

  @Id
  private String uid;
  private String name;
  //菜单级别
  private Integer menuLevel;
  //简介
  private String summary;
  private String parentUid;
  private String url;
  //图标
  private String icon;
  //排序字段，越大越靠前
  private Integer sort;
  private Integer status;
  private Date createTime;
  private Date updateTime;
  private Integer isShow;
  //菜单类型 0: 菜单   1: 按钮
  private Integer menuType;


  @Transient
  private Integer currentPage;
  @Transient
  private Integer pageSize;
  @Transient
  private String keyword;

  @Transient
  private List<CategoryMenu> childCategoryMenu;

}
